<%@ Page Language="C#" MasterPageFile="~/Demo.master" AutoEventWireup="true" CodeFile="Week.aspx.cs"
    Inherits="Scheduler_Week" Title="Week View (Scheduler) | DayPilot Pro Demo" %>

<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%">
        <div style="float: left; width: 150px">
            <DayPilot:DayPilotNavigator ID="DayPilotNavigator1" runat="server" BoundDayPilotID="DayPilotScheduler1"
                CssClassPrefix="navigator_silver_" SelectMode="Week" ShowMonths="3" DataEndField="end"
                DataStartField="start" VisibleRangeChangedHandling="CallBack" OnVisibleRangeChanged="DayPilotNavigator1_VisibleRangeChanged" />
        </div>
        <div style="margin-left: 150px; min-height: 500px">
            <DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server" Days="7" Width="100%"
                StartDate="2010-01-01" DataStartField="start" DataEndField="end" DataTextField="name"
                DataValueField="id" HeaderFontSize="8pt" HeaderHeight="17" DataResourceField="column"
                EventHeight="40" CellDuration="60" CellWidth="25" TimeRangeSelectedHandling="CallBack"
                EventMoveHandling="CallBack" EventResizeHandling="CallBack" OnEventMove="DayPilotScheduler1_EventMove"
                OnEventResize="DayPilotScheduler1_EventResize" OnTimeRangeSelected="DayPilotScheduler1_TimeRangeSelected"
                DataTagFields="start,id,name" EventClickHandling="JavaScript" EventClickJavaScript="alert('Tag[&quot;name&quot;]: ' + e.tag(&quot;name&quot;) + '.')"
                EventResizeJavaScript="alert(newStart.toString() + '\n' + newEnd.toString());"
                ClientObjectName="dps1" BorderColor="Black"
                OnCommand="DayPilotScheduler1_Command"
                
                CssClassPrefix="scheduler_silver_"
                HourNameBackColor="#F0F0F0"

                >
                <Resources>
                    <DayPilot:Resource Name="Room A" Value="A" />
                    <DayPilot:Resource Name="Room B" Value="B" />
                    <DayPilot:Resource Name="Room C" Value="C" />
                    <DayPilot:Resource Name="Room D" Value="D" />
                    <DayPilot:Resource Name="Room E" Value="E" />
                    <DayPilot:Resource Name="Room F" Value="F" />
                    <DayPilot:Resource Name="Room G" Value="G" />
                    <DayPilot:Resource Name="Room H" Value="H" />
                </Resources>
            </DayPilot:DayPilotScheduler>
        </div>
    </div>
</asp:Content>
